package com.lrkj.payfee.mapper;

import com.lrkj.payfee.domain.FavouredConf;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠政策设置Mapper接口
 *
 * @author yajun_ren
 * @date 2021-08-14
 */
public interface FavouredConfMapper {
    /**
     * 查询优惠政策设置
     *
     * @param favouredConfId 优惠政策设置ID
     * @return 优惠政策设置
     */
    public FavouredConf selectFavouredConfById(String favouredConfId);
    FavouredConf selectFavouredConfByPolicyId(String favouredPolicyId);
    /**
     * 查询优惠政策设置列表
     *
     * @param favouredConf 优惠政策设置
     * @return 优惠政策设置集合
     */
    public List<FavouredConf> selectFavouredConfList(FavouredConf favouredConf);

    /**
     * 新增优惠政策设置
     *
     * @param favouredConf 优惠政策设置
     * @return 结果
     */
    public int insertFavouredConf(FavouredConf favouredConf);

    /**
     * 修改优惠政策设置
     *
     * @param favouredConf 优惠政策设置
     * @return 结果
     */
    public int updateFavouredConf(FavouredConf favouredConf);

    /**
     * 删除优惠政策设置
     *
     * @param favouredConfId 优惠政策设置ID
     * @return 结果
     */
    public int deleteFavouredConfById(String favouredConfId);

    /**
     * 批量删除优惠政策设置
     *
     * @param favouredConfIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteFavouredConfByIds(String[] favouredConfIds);

    /**
     * 批量新增
     */
    public int doSaveList(@Param("batchBean") List<FavouredConf> batchBean);

    /**
     * 删除优惠政策设置信息
     *
     * @param favouredPolicyId 优惠政策ID
     * @return 结果
     */
    public int deleteFavouredPolicyId(String favouredPolicyId);
}
